package com.chenglu.android.search.adapter;

import android.content.Context;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chenglu.android.R;
import com.chenglu.android.search.bean.KeyWordsHositoryBean;

import java.util.List;

/**
 * @author: lyj
 * @Created: by Copyright 2023/3/13 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description：历史搜索流式布局
 */
public class SearchHistoryAdapter extends BaseQuickAdapter<KeyWordsHositoryBean, BaseViewHolder> {

    private Context mcontext ;

    public SearchHistoryAdapter(@Nullable Context context, List<KeyWordsHositoryBean> data) {
        super(R.layout.item_history, data);
        this.mcontext = context;

    }



    @Override
    protected void convert(@NonNull BaseViewHolder helper, KeyWordsHositoryBean item) {

        if (item != null) {
            TextView textView = helper.getView(R.id.tv_item_shop_flow_name);
            textView.setText(item.getKeyWords());

        }

    }


}
